target_sources(dmockdb
    PRIVATE
        db_impl.cc
        db_impl.h
        writers.cc
        writers.h
        writable_file.cc
        writable_file.h
        write_batch.cc
        write_batch.h
)

if (TEST_FLAG STREQUAL "Test")
    target_sources(dtest
        PRIVATE
            db_impl.cc
            db_impl.h
            writers.cc
            writers.h
            writable_file.cc
            writable_file.h
    )
    target_include_directories(dtest PUBLIC ${CMAKE_CURRENT_LIST_DIR})
endif (TEST_FLAG STREQUAL "Test")

target_link_libraries(dmockdb
    crc32c
)

target_include_directories(dmockdb PUBLIC ${CMAKE_CURRENT_LIST_DIR})